<?php

namespace App\Services;

use App\Models\UserLevel;
use common\utils\RedisKeys;
use Illuminate\Support\Facades\Redis;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use App\Models\Order;

//用戶層級
class UserLevelService
{
    public static function getInfoById($levelID=null){
        if(empty($levelID)){
            return [];
        }
        return UserLevel::where(['id' => $levelID])->first()->toArray();
    }
}